package com.dong.redis.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Arrays;
import java.util.List;

/**
 * @description: redis 配置
 * @author: 陈瑞东
 * @create: 2022-12-09 15:18
 */
@ConfigurationProperties(prefix = "redis")
public class RedisProperties {

    private String host = "127.0.0.1";
    private Integer port = 6379;
    private String password;
    private List<Integer> dbs = Arrays.asList(0);

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public List<Integer> getDbs() {
        return dbs;
    }

    public void setDbs(List<Integer> dbs) {
        this.dbs = dbs;
    }
}
